package com.isoftstone.securityframework.device.subject;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 终端身份
 * @author david
 *
 */
@SuppressWarnings("serial")
public class DeviceToken implements AuthenticationToken{

	private String deviceFlag;
	
	
	public DeviceToken() {
	}
	public DeviceToken(String deviceFlag) {
		this.deviceFlag = deviceFlag;
	}
	
	
	
	public Object getPrincipal() {
		return this.deviceFlag;
	}

	public Object getCredentials() {
		return this.deviceFlag;
	}

	public String getDeviceFlag() {
		return this.deviceFlag;
	}

	public void setDeviceFlag(String deviceFlag) {
		this.deviceFlag = deviceFlag;
	}

}
